package com.yhq.spring.web.aop;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
 * @author hqyin
 * @date 2025/6/11 4:02 PM
 */
public class CalInterceptor implements MethodInterceptor {
    @Override
    public Object invoke(MethodInvocation invocation) throws Throwable {
        System.out.println("Interceptor before"+invocation.getMethod().getName());
        Object result = invocation.proceed();
        System.out.println("Interceptor after"+invocation.getMethod().getName());
        return result;
    }
}
